﻿using FactoryMethodPattern.Product;

namespace FactoryMethodPattern.Factory
{
    internal class AUDIFactory : BaseCreator
    {
        public override BaseProduct CreateProduct()
        {
            var aUDIProduct = new AUDIProduct() { Name = nameof(AUDIProduct) };
            aUDIProduct.Prepare();
            aUDIProduct.CreateEngine();
            aUDIProduct.CreateWheel();
            aUDIProduct.CreateComplete();
            return aUDIProduct;
        }
    }
}